package com.zzw.controller;

import com.zzw.pojo.MyResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 邮箱controller
 *
 * @Author: zhangzhiwei
 * @Date: 2022/4/7 21:17
 */
@RestController
@RequestMapping("/email")
public class EmailController {

    private static final Logger log = LoggerFactory.getLogger(EmailController.class);

    @GetMapping("/sendEmail/{email}/{code}")
    public MyResponse<Boolean> sendEmail(@PathVariable String email, @PathVariable String code){

        log.info("正在向邮箱发送验证码===>" + code);
        return new MyResponse<>(200, "验证码发送成功", true);

    }

}
